// CRC32: 322B948B | Matched 6 variants of 3 shaders: Legacy Shaders/Bumped Diffuse, Legacy Shaders/Diffuse, Transparent/Double Sided Transparent (Supports Lightmap)
// 
//    Unity headers extracted from Normal-Bumped.shader
//    Shader "Legacy Shaders/Bumped Diffuse" {
//      Properties {
//       _Color ("Main Color", Color) = (1,1,1,1)
//       _MainTex ("Base (RGB)", 2D) = "white" { }
//       _BumpMap ("Normalmap", 2D) = "bump" { }
//      }
//      Fallback "Legacy Shaders/Diffuse"
//      SubShader 1/1 {
//        LOD 300
//        Tags { "RenderType"="Opaque" }
//        Pass 4/6 {
//          Name "PREPASS"
//          Tags { "LIGHTMODE"="PrePassFinal" "RenderType"="Opaque" }
//          ZWrite Off
//          GpuProgramID 261745
//          Program "vp" {
//            SubProgram "d3d9 " {
// 1:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_ON" "FOG_LINEAR" "HDR_LIGHT_PREPASS_OFF" "LIGHTMAP_ON" }
// 2:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_ON" "FOG_LINEAR" "LIGHTMAP_ON" "UNITY_HDR_ON" }
//              Bind "vertex" Vertex
//              Bind "texcoord" TexCoord0
//              Bind "texcoord1" TexCoord1
//              Bind "texcoord2" TexCoord2
//              Matrix 7 [_Object2World] 3
//              Matrix 4 [glstate_matrix_modelview0] 3
//              Matrix 0 [glstate_matrix_mvp]
//              Vector 15 [_MainTex_ST]
//              Vector 10 [_ProjectionParams]
//              Vector 11 [_ScreenParams]
//              Vector 14 [unity_DynamicLightmapST]
//              Vector 13 [unity_LightmapST]
//              Vector 12 [unity_ShadowFadeCenterAndType]
//            }
//          }
//        }
//      }
//    }
// 
//    Unity headers extracted from Normal-Diffuse.shader
//    Shader "Legacy Shaders/Diffuse" {
//      Properties {
//       _Color ("Main Color", Color) = (1,1,1,1)
//       _MainTex ("Base (RGB)", 2D) = "white" { }
//      }
//      Fallback "Legacy Shaders/VertexLit"
//      SubShader 1/1 {
//        LOD 200
//        Tags { "RenderType"="Opaque" }
//        Pass 4/6 {
//          Name "PREPASS"
//          Tags { "LIGHTMODE"="PrePassFinal" "RenderType"="Opaque" }
//          ZWrite Off
//          GpuProgramID 200775
//          Program "vp" {
//            SubProgram "d3d9 " {
// 1:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_ON" "FOG_LINEAR" "HDR_LIGHT_PREPASS_OFF" "LIGHTMAP_ON" }
// 2:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_ON" "FOG_LINEAR" "LIGHTMAP_ON" "UNITY_HDR_ON" }
//              Bind "vertex" Vertex
//              Bind "texcoord" TexCoord0
//              Bind "texcoord1" TexCoord1
//              Bind "texcoord2" TexCoord2
//              Matrix 7 [_Object2World] 3
//              Matrix 4 [glstate_matrix_modelview0] 3
//              Matrix 0 [glstate_matrix_mvp]
//              Vector 15 [_MainTex_ST]
//              Vector 10 [_ProjectionParams]
//              Vector 11 [_ScreenParams]
//              Vector 14 [unity_DynamicLightmapST]
//              Vector 13 [unity_LightmapST]
//              Vector 12 [unity_ShadowFadeCenterAndType]
//            }
//          }
//        }
//      }
//    }
// 
//    Unity headers extracted from Mobile Double Sided Transparent (Supports Lightmap).shader
//    Shader "Transparent/Double Sided Transparent (Supports Lightmap)" {
//      Properties {
//       _MainTex ("Base (RGB) Trans (A)", 2D) = "white" { }
//      }
//      Fallback "Diffuse"
//      SubShader 1/1 {
//        Tags { "QUEUE"="Transparent" "RenderType"="Transparent" }
//        Pass 3/4 {
//          Name "PREPASS"
//          Tags { "LIGHTMODE"="PrePassFinal" "QUEUE"="Transparent" "RenderType"="Transparent" }
//          ZWrite Off
//          Cull Off
//          Blend SrcAlpha OneMinusSrcAlpha
//          GpuProgramID 136280
//          Program "vp" {
//            SubProgram "d3d9 " {
// 1:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_ON" "FOG_LINEAR" "HDR_LIGHT_PREPASS_OFF" "LIGHTMAP_ON" }
// 2:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_ON" "FOG_LINEAR" "LIGHTMAP_ON" "UNITY_HDR_ON" }
//              Bind "vertex" Vertex
//              Bind "texcoord" TexCoord0
//              Bind "texcoord1" TexCoord1
//              Bind "texcoord2" TexCoord2
//              Matrix 7 [_Object2World] 3
//              Matrix 4 [glstate_matrix_modelview0] 3
//              Matrix 0 [glstate_matrix_mvp]
//              Vector 15 [_MainTex_ST]
//              Vector 10 [_ProjectionParams]
//              Vector 11 [_ScreenParams]
//              Vector 14 [unity_DynamicLightmapST]
//              Vector 13 [unity_LightmapST]
//              Vector 12 [unity_ShadowFadeCenterAndType]
//            }
//          }
//        }
//      }
//    }
// 
// Headers extracted with DarkStarSword's extract_unity_shaders.py
// https://raw.githubusercontent.com/DarkStarSword/3d-fixes/master/extract_unity_shaders.py

    vs_3_0
    def c16, 0.5, 1, 0, 0
    dcl_position v0
    dcl_texcoord v1
    dcl_texcoord1 v2
    dcl_texcoord2 v3
    dcl_position o0
    dcl_texcoord o1.xy
    dcl_texcoord1 o2.xyz
    dcl_texcoord2 o3
    dcl_texcoord3 o4
    dcl_texcoord4 o5
    dcl_texcoord5 o6.x

def c220, 0, 1, 0.0625, 0.5
dcl_2d s0

    mad o1.xy, v1, c15, c15.zwzw
    dp4 r0.y, c1, v0
    mul r1.x, r0.y, c10.x
    mul r1.w, r1.x, c16.x
    dp4 r0.x, c0, v0
    dp4 r0.w, c3, v0

mov o0, r0 // Relocated from line 155 with shadertool.py

// Automatic vertex shader halo fix inserted with DarkStarSword's shadertool.py:
// shadertool.py -I ../.. --fix-unity-reflection --auto-fix-vertex-halo --add-fog-on-sm3-update --only-autofixed --ignore-register-errors Legacy Shaders_Bumped Diffuse/vp/322B948B.txt
texldl r31, c220.z, s0
add r31.w, r0.w, -r31.y
mad r0.x, r31.w, r31.x, r0.x

    mul r1.xz, r0.xyww, c16.x
    mad o3.xy, r1.z, c11.zwzw, r1.xwzw
    mad o4.zw, v3.xyxy, c14.xyxy, c14
    mad o4.xy, v2, c13, c13.zwzw
    dp4 r1.x, c7, v0
    dp4 r1.y, c8, v0
    dp4 r1.z, c9, v0
    add r2.xyz, r1, -c12
    mov o2.xyz, r1
    mul o5.xyz, r2, c12.w
    dp4 r1.x, c6, v0
    mov r1.w, c12.w
    add r1.y, -r1.w, c16.y
    mul o5.w, r1.y, -r1.x
    dp4 r0.z, c2, v0

//     mov o0, r0 // Relocated to line 140 with shadertool.py
mov o0.z, r0 // Inserted by shadertool.py

    mov o3.zw, r0
    mov o6.x, r0.z
